package com.gbq.qimo.service.impl;

import com.gbq.qimo.mapper.AdminMapper;
import com.gbq.qimo.mapper.impl.AdminMapperImpl;
import com.gbq.qimo.pojo.Admin;
import com.gbq.qimo.service.AdminService;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author guobenqi
 * @Date 2021/5/29 15:41
 */
public class AdminServiceImpl implements AdminService {
    private AdminMapper adminMapper = new AdminMapperImpl();


    @Override
    public Admin findUser(Admin admin) {

        return adminMapper.findOneAdmin(admin.getUsername(),admin.getPassword());
    }
}
